﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CinemaDbLib;
using CinemaProject;

namespace CinamaProject
{
    public class ScheduleCtrl : WcfServiceLibrary1.Ctrl.IScheduleCtrl
    {
        private ScheduleDB scheduleDB;

        public ScheduleCtrl()
        {
            scheduleDB = new ScheduleDB();
        }

        public Schedule getScheduleById(int id)
        {
            return scheduleDB.getScheduleById(id);
        }

        public List<Schedule> getScheduleByMovieId(int id)
        {
            return scheduleDB.getScheduleByMovieId(id);
        }

        public List<Schedule> getSchedules()
        {
            return scheduleDB.getSchedules();
        }
    }
}